<template>
<!--  常用地址-->
  <div class="usually">
    <div class="fanhuile" @click="shangyiye">
      <van-icon name="arrow-left"></van-icon>
    </div>
    <div class="dizhi1234">
      常用地址：{{address}}
    </div>
    <BottomPanel/>
  </div>
</template>

<script>
import BottomPanel from "@/views/bottomPanel.vue";
import {getAddress} from "@/api/personal/personal";
export default {
  components: {BottomPanel},
  created() {
    // 查询所有个人信息
    this.findAddress()
  },
  methods: {
    // 查询所有个人信息
    findAddress(){
      getAddress(this.passengerId).then(res => {
        console.log(res)
        this.address = res
      })
    },
    //返回上级页面
    shangyiye(){
      this.$router.push({path: '/personalHome'})
    }
  },
  data() {
    return {
      address:[],
      passengerId:1,
    }
  },



}
</script>


<style>
.usually{
  width: 100%;
  height: 80vh;
}
.fanhuile{
  width: 90%;
  font-size: 20px;
  line-height: 80px;
  height: 80px;
}
.dizhi1234{
  width: 90%;
  margin-left: 10%;
}

</style>